<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>绑定和解绑</title>
  </head>
  <body>
    <button id="look">眸你一下</button><button id="stop">让你眸了吗</button>
    <script>
      const lookEle = document.getElementById('look')
      const stopEle = document.getElementById('stop')

      let fuck = function () {
        alert('你看你妈呢')
      }

      lookEle.addEventListener('click', fuck)
      stopEle.addEventListener('click', function () {
        lookEle.removeEventListener('click', fuck)
      })
    </script>
  </body>
</html>
